.compliance-container {
  padding: 20px;
  background-color: #f5f7fa;
  min-height: 100vh;
}

/* 搜索区域样式 */
.search-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-item {
  flex: 1;
  min-width: 200px;
}

.search-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.advanced-filter {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4e7ed;
  animation: slideDown 0.3s ease;
}

/* 统计卡片样式 */
.stats-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 200px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-card .label {
  font-size: 14px;
  color: #606266;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 600;
  color: #303133;
}

.stat-card .trend {
  font-size: 14px;
  margin-top: 8px;
}

.stat-card.compliant .value {
  color: #67C23A;
}

.stat-card.non-compliant .value {
  color: #F56C6C;
}

.stat-card.high-risk .value {
  color: #F56C6C;
}

.stat-card.medium-risk .value {
  color: #E6A23C;
}

.stat-card.low-risk .value {
  color: #409EFF;
}

/* 表格样式 */
.table-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ed;
}

.table-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.table-actions {
  display: flex;
  gap: 12px;
}

.batch-actions {
  display: flex;
  gap: 12px;
  margin-left: 12px;
  font-size: 14px;
}

.batch-actions .el-button--text {
  color: #606266;
}

.batch-actions .el-button--text:hover {
  color: #409EFF;
}

/* 详情页面样式 */
.details-container {
  padding: 20px;
}

.check-info {
  background-color: #f5f7fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  margin-bottom: 12px;
}

.info-label {
  width: 120px;
  font-weight: 500;
  color: #606266;
}

.info-value {
  flex: 1;
  color: #303133;
}

/* 图表容器样式 */
.charts-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chart-card {
  flex: 1;
  min-width: 400px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.chart-container {
  width: 100%;
  height: 300px;
}

/* 失败项和通过项列表样式 */
.failure-list, .pass-list {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.list-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.list-content {
  max-height: 400px;
  overflow-y: auto;
}

.failure-item, .pass-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.failure-item:hover, .pass-item:hover {
  background-color: #f5f7fa;
}

.failure-item:last-child, .pass-item:last-child {
  border-bottom: none;
}

.failure-item .item-header, .pass-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.failure-item .item-name, .pass-item .item-name {
  font-weight: 500;
  color: #303133;
  font-size: 15px;
}

.failure-item .item-description, .pass-item .item-description {
  color: #606266;
  font-size: 14px;
  line-height: 1.5;
}

.failure-item .item-standard, .pass-item .item-standard {
  color: #909399;
  font-size: 13px;
  margin-top: 8px;
}

/* 对话框样式 */
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e7ed;
}

.dialog-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-item {
  flex: 1;
  min-width: 250px;
}

/* 失败详情样式 */
.failure-details {
  padding: 20px;
}

.failure-info {
  background-color: #fef0f0;
  border: 1px solid #fbc4c4;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.failure-info h4 {
  color: #f56c6c;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
}

.failure-info .info-item {
  margin-bottom: 8px;
  font-size: 14px;
  color: #606266;
}

.remediation-section {
  background-color: #f5f7fa;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.remediation-section h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  color: #303133;
}

.remediation-steps {
  padding-left: 20px;
  line-height: 1.6;
  color: #606266;
}

.remediation-steps li {
  margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .compliance-container {
    padding: 12px;
  }
  
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-item {
    min-width: 100%;
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .stat-card {
    min-width: 100%;
  }
  
  .charts-container {
    flex-direction: column;
  }
  
  .chart-card {
    min-width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-item {
    min-width: 100%;
  }
  
  .table-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .table-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* 动画效果 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #909399;
}

/* 空状态样式 */
.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #909399;
}

.empty-container .empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.empty-container .empty-text {
  font-size: 14px;
  margin-bottom: 16px;
}

/* 滚动条样式 */
.list-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.list-content::-webkit-scrollbar-thumb {
  background-color: #dcdfe6;
  border-radius: 3px;
}

.list-content::-webkit-scrollbar-track {
  background-color: #f5f7fa;
}

/* 深色模式适配 */
.security-compliance-container:deep(.el-table--dark) .table-header {
  background-color: #1f2937;
  border-bottom-color: #374151;
}

.security-compliance-container:deep(.el-table--dark) .table-header h3 {
  color: #f3f4f6;
}

.security-compliance-container:deep(.el-table--dark) .table-actions .el-button--text {
  color: #d1d5db;
}

.security-compliance-container:deep(.el-table--dark) .batch-actions .el-button--text {
  color: #d1d5db;
}

.security-compliance-container:deep(.el-table--dark) .batch-actions .el-button--text:hover {
  color: #93c5fd;
}

.security-compliance-container:deep(.el-dialog__header) {
  background-color: #f5f7fa;
  padding: 20px;
  border-bottom: 1px solid #e4e7ed;
}

.security-compliance-container:deep(.el-dialog__header__title) {
  font-size: 18px;
  font-weight: 600;
}

.security-compliance-container:deep(.el-dialog__body) {
  padding: 24px;
}

.security-compliance-container:deep(.el-dialog__footer) {
  padding: 16px 24px;
  border-top: 1px solid #e4e7ed;
}

.security-compliance-container:deep(.el-tag--success) {
  background-color: #f0f9eb;
  border-color: #e1f3d8;
  color: #67c23a;
}

.security-compliance-container:deep(.el-tag--warning) {
  background-color: #fdf6ec;
  border-color: #faecd8;
  color: #e6a23c;
}

.security-compliance-container:deep(.el-tag--danger) {
  background-color: #fef0f0;
  border-color: #fde2e2;
  color: #f56c6c;
}

.security-compliance-container:deep(.el-tag--info) {
  background-color: #edf2fc;
  border-color: #ebeef5;
  color: #909399;
}

.security-compliance-container:deep(.el-pagination__sizes .el-input__wrapper) {
  box-shadow: none;
}

.security-compliance-container:deep(.el-pagination__total) {
  color: #606266;
}